package com.kayt.cyberBar.cpublic.business.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.kayt.cyberBar.common.dao.EntityDao;
import com.kayt.cyberBar.cpublic.business.dao.IPublicReqLeaveTypeDao;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicReqLeaveType;

@Repository("publicReqLeaveTypeDao")
public class PublicReqLeaveTypeDaoImpl implements IPublicReqLeaveTypeDao{
	@Autowired
	private EntityDao entityDao;
	
	@Override
	public List<CPublicReqLeaveType> getList() {
		try {
			return entityDao.getPagingDataByJpql(CPublicReqLeaveType.class, -1, -1, "SELECT c FROM CPublicReqLeaveType c", null);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

}
